VLex: Visualizing a Lexical Analyzer Generator
نویسندگان
چکیده
Lexical analyzer generators such as lex and its many successors are based on well-understood concepts. Yet, students often have problems to intuitively grasp and visualize these concepts, especially in compiler engineering courses that emphasize the use of tools over fundamental algorithms. VLex is designed to close the gap left by existing visualization tools, and to help students to understand the approach taken and the algorithms used in lexical analyzer generators. It has the “look and feel” of a lexical analyzer generator, rather than that of a theory animation tool. It can handle multiple lexical states and accepting states can return different tokens. VLex visualizes the algorithms typically implemented in a lexical analyzer generator in the lex tradition, i.e., converting regular expressions via non-deterministic into a deterministic finite automata and then minimizing these automata. The visualization works incrementally, and the user can choose any location to control how the algorithms continue. VLex can also animate the different automata during
منابع مشابه
Analyzer and generator for Pali
This work describes a system that performs morphological analysis and generation of Pali words. The system works with regular inflectional paradigms and a lexical database. The generator is used to build a collection of inflected and derived words, which in turn is used by the analyzer. Generating and storing morphological forms along with the corresponding morphological information allows for ...
متن کاملVeriied Lexical Analysis
This paper presents the development and veriication of a (very simple) lexical analyzer generator that takes a regular expression and yields a functional lexical analyzer. The emphasis is on simplicity and executability. The work was carried out with the help of the theorem prover Isabelle/HOL.
متن کاملCOMPTOOLS: A Compiler Generator for C and Java
There currently exists a large number of tools to generate parsers and lexical analyzers. However, only a small number of such tools provide a complete solution for the construction of the parser and of the lexical analyzer. Furthermore, to our knowledge, none of these tools propose a syntax diagram generator to document the grammars and lexicon of the newly defined languages. We propose the CO...
متن کاملEULIA: a graphical web interface for creating, browsing and editing linguistically annotated corpora
In this paper we present EULIA, a tool which has been designed for dealing with the linguistic annotated corpora generated by a set of different linguistic processing tools. The objective of EULIA is to provide a flexible and extensible environment for creating, consulting, visualizing, and modifying documents generated by existing linguistic tools. The documents used as input and output of the...
متن کاملNLlex – a tool to generate lexical analyzers for natural language
In this paper we present a natural language lexical analysis program generator (NLlex) that looks like Unix lex extended with morphological analysis and other Natural Language (NL) elements. NLlex generates a C program which is linked with a morphological analyzer and with other modules, in order to produce a NL processor. As a particular case, NLlex can generate modules to work: as a lexico-mo...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2011